From 6fb79305d3692fd69c0d28a060ed51c9a7ae1300 Mon Sep 17 00:00:00 2001 From: "vh249@arcadians.cl.cam.ac.uk" Date: Sat, 10 Sep 2005 14:38:01 +0000 Subject: [PATCH] convert initializers to C99 initializers Signed-off-by: Vincent Hanquez --- .../drivers/xen/console/console.c | 6 +++--- linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c | 16 ++++++++-------- .../drivers/xen/privcmd/privcmd.c | 4 ++-- .../drivers/xen/xenbus/xenbus_dev.c | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/console/console.c b/linux-2.6-xen-sparse/drivers/xen/console/console.c index 129cabec66..18ed52c038 100644 --- a/linux-2.6-xen-sparse/drivers/xen/console/console.c +++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c @@ -182,9 +182,9 @@ static kdev_t kcons_device(struct console *c) #endif static struct console kcons_info = { - device: kcons_device, - flags: CON_PRINTBUFFER, - index: -1 + .device = kcons_device, + .flags = CON_PRINTBUFFER, + .index = -1, }; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) diff --git a/linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c b/linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c index bbd1236fd8..77fb6b4b1c 100644 --- a/linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c +++ b/linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c @@ -356,14 +356,14 @@ static int evtchn_release(struct inode *inode, struct file *filp) } static struct file_operations evtchn_fops = { - owner: THIS_MODULE, - read: evtchn_read, - write: evtchn_write, - ioctl: evtchn_ioctl, - poll: evtchn_poll, - fasync: evtchn_fasync, - open: evtchn_open, - release: evtchn_release + .owner = THIS_MODULE, + .read = evtchn_read, + .write = evtchn_write, + .ioctl = evtchn_ioctl, + .poll = evtchn_poll, + .fasync = evtchn_fasync, + .open = evtchn_open, + .release = evtchn_release, }; static struct miscdevice evtchn_miscdev = { diff --git a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c index a2965a0e70..07317bdb3e 100644 --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c @@ -241,8 +241,8 @@ static int privcmd_mmap(struct file * file, struct vm_area_struct * vma) } static struct file_operations privcmd_file_ops = { - ioctl : privcmd_ioctl, - mmap: privcmd_mmap + .ioctl = privcmd_ioctl, + .mmap = privcmd_mmap, }; diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c index 4fb173012f..494b0f7cc4 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c @@ -168,9 +168,9 @@ static int xenbus_dev_release(struct inode *inode, struct file *filp) } static struct file_operations xenbus_dev_file_ops = { - ioctl: xenbus_dev_ioctl, - open: xenbus_dev_open, - release: xenbus_dev_release + .ioctl = xenbus_dev_ioctl, + .open = xenbus_dev_open, + .release = xenbus_dev_release, }; static int __init -- 2.30.2